package com.example.health_life.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserviewRepository extends JpaRepository<Userview, Integer> {

    List<Userview> findByUserId(Integer userId);

    Integer countByTypeAndTypeId(Byte type, Integer typeId);
}
